package logic;

import javax.swing.JFileChooser;

import utils.Constant;

public class Main {

	public static void main(String[] args) {
		JFileChooser chooser = new JFileChooser();
		chooser.setCurrentDirectory(new java.io.File("."));
		chooser.setDialogTitle("Choose Transformations Path");
		chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
		chooser.setAcceptAllFileFilterUsed(false);

		if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
			BuildLog.generatorLogger(chooser.getSelectedFile()
					.getAbsolutePath());
			System.out.println("Path selected: " + chooser.getSelectedFile());
			System.out.println("New Log Generator Created: "
					+ chooser.getSelectedFile() + Constant.INSTRUMENTED);
			System.out.println("");
		} else {
			System.out.println("No selected Path!");
		}
	}
}
